home *** CD-ROM | disk | FTP | other *** search
/ PC go! 2008 March / PCgo 2008-03 (CD).iso / interface / contents / ie7paket_3437 / 10480 / files / ie7prosetup.exe / {app} / userscripts / MyspaceCustomStyleRemover.ieuser.js < prev    next >
Encoding:
JavaScript  |  2007-04-17  |  732 b   |  25 lines

  1. // ==UserScript==
  2. // @name          Myspace custom style remover
  3. // @namespace     http://www.moosoft.com/greasemonkey
  4. // @include       http://myspace.com/*
  5. // @include       http://*.myspace.com/*
  6. // @description   Hide annoying custom styles on myspace pages
  7. // @exclude      http://blog.myspace.com/*
  8. // ==/UserScript==
  9. //
  10. // Author: Daniel Otis  http://www.moosoft.com
  11. //  
  12. //  Version: 1.0
  13. //    1.1 - total rewrite
  14. //    1.0 - first version
  15.  
  16. (function () {
  17.     //remove user styles
  18.     var badstyles = document.getElementsByTagName("style");
  19.     var i = badstyles.length - 1;
  20.     while (i >= 0) {
  21.           badstyles[i] = badstyles[i].parentElement.removeChild(badstyles[i]);
  22.           i--;
  23.     }
  24. }) ();
  25.